﻿@model ExcerciseQuestion
@if (Model.A.IsNotEmpty())
{
    <li class="item-content">
        <div class="item-inner">
            <div class="item-title" style="width:100%">
                <input class="uicheck" id="answerA" @Html.IsDisabled(Model.UserSelected.HasValue) @Html.IsChecked(Model.UserSelected.HasValue && Model.UserAnswer.Contains("A")) type="checkbox" value="A" style="margin-right: 10px;">
                <label for="answerA" style="width: 100%;white-space: normal;">
                    A、@Model.A
                </label>
            </div>
        </div>
    </li>
}
@if (Model.B.IsNotEmpty())
{
    <li class="item-content">
        <div class="item-inner">
            <div class="item-title" style="width:100%">
                <input class="uicheck" id="answerB" @Html.IsDisabled(Model.UserSelected.HasValue) @Html.IsChecked(Model.UserSelected.HasValue && Model.UserAnswer.Contains("B")) type="checkbox" value="B" style="margin-right: 10px;">
                <label for="answerB" style="width: 100%;white-space: normal;">
                    B、@Model.B
                </label>
            </div>
        </div>
    </li>
}
@if (Model.C.IsNotEmpty())
{
    <li class="item-content">
        <div class="item-inner">
            <div class="item-title" style="width:100%">
                <input class="uicheck" id="answerC" @Html.IsDisabled(Model.UserSelected.HasValue) @Html.IsChecked(Model.UserSelected.HasValue && Model.UserAnswer.Contains("C")) type="checkbox" value="C" style="margin-right: 10px;">
                <label for="answerC" style="width: 100%;white-space: normal;">
                    C、@Model.C
                </label>
            </div>
        </div>
    </li>
}
@if (Model.D.IsNotEmpty())
{
    <li class="item-content">
        <div class="item-inner">
            <div class="item-title" style="width:100%">
                <input class="uicheck" id="answerD" @Html.IsDisabled(Model.UserSelected.HasValue) @Html.IsChecked(Model.UserSelected.HasValue && Model.UserAnswer.Contains("D")) type="checkbox" value="D" style="margin-right: 10px;">
                <label for="answerD" style="width: 100%;white-space: normal;">
                    D、@Model.D
                </label>
            </div>
        </div>
    </li>
}
@if (Model.E.IsNotEmpty())
{
    <li class="item-content">
        <div class="item-inner">
            <div class="item-title" style="width:100%">
                <input class="uicheck" id="answerE" @Html.IsDisabled(Model.UserSelected.HasValue) @Html.IsChecked(Model.UserSelected.HasValue && Model.UserAnswer.Contains("E")) type="checkbox" value="E" style="margin-right: 10px;">
                <label for="answerE" style="width: 100%;white-space: normal;">
                    E、@Model.E
                </label>
            </div>
        </div>
    </li>
}

